package com.satan.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.satan.entity.BaseEntity;
import com.satan.entity.SysRole;
import com.satan.serlializer.CustomeDateTimeSerializer;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @ClassName SysUserVo
 * @Description TODO
 * @date 2023/11/23 18:14
 * @Version 1.0
 */
@Data
public class SysUserVo extends BaseEntity {
    /**
     * 用户名
     */

    private String username;

    /**
     * 密码
     */

    private String password;

    /**
     * 用户头像
     */

    private String avatar;

    /**
     * 用户邮箱
     */

    private String email;

    /**
     * 手机号码
     */

    private String phonenumber;

    /**
     * 最后登录时间
     */
    @JsonSerialize(using = CustomeDateTimeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date loginDate;

    /**
     * 帐号状态（0正常 1停用）
     */

    private String status;


    private String roles;

    private List<SysRole> sysRoleList;

}
